<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Document</title>
</head>
<body>

<div id="app"> 
  <!-- 错误的做法，这里不可以使用mustache语法 -->
  <!-- <img src="{{imgURL}}" alt=""> -->
  <!-- 正确的做法：使用v-bind指令 -->
  <img v-bind:src="imgURL" alt="">
  <a v-bind:href="aHref">百度一下</a>

  <!-- 语法糖的写法 -->
  <img :src="imgURL" alt="">
  <a :href="aHref">百度一下</a>
</div>
  
<script src="../js/vue.js"></script>
<script>
  const app = new Vue({
    el: '#app',//用于挂载要管理的元素
    data: {
      message: '你好啊',
      imgURL: 'https://dss2.bdstatic.com/6Ot1bjeh1BF3odCf/it/u=1960575884,2005088772&fm=74&app=80&f=JPEG&size=f121,140?sec=1880279984&t=ce55d7bc5a1b69918e2dce385d85874e',
      aHref: 'http://www.baidu.com'
    }
  })
</script>

</body>
</html>